package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Purse;
import com.ruoyi.system.mapper.PurseMapper;
import com.ruoyi.system.service.PurseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurseServiceImpl implements PurseService {

    @Autowired
    private PurseMapper purseMapper;


    @Override
    public Purse selectByDriverCode(String driverCode) {
        return purseMapper.selectByDriverCode(driverCode);
    }

    @Override
    public void updateCash(String driverCode, Double cash) {
        purseMapper.updateCash(driverCode,cash);
    }

    @Override
    public List<Purse> selectByList() {
        return purseMapper.selectByList();
    }

    @Override
    public void updatePurse(Purse purse) {
        purseMapper.updatePurse(purse);
    }
}
